package com.bsoft.wx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bsoft.wx.pojo.TbUser;

import java.util.Set;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author hdh
 * @since 2023-01-11
 */
public interface TbUserService extends IService<TbUser> {


    public int registerUser(String registerCode, String code, String nickname, String photo);

    //查询权限
    public Set<String> searchUserPermissions(int userId);

    //登录方法
    public Integer login(String code);

    public TbUser searchById(int userId);
}
